<?php
/**
 * 充值模板验证器
 */

namespace app\common\validate;

class RechargeTemplateValidate extends Validate
{
    protected $rule = [
            'money|充值金额' => 'require',
    'give_money|赠送金额' => 'require',
    'sort|排序' => 'require',
    'is_recommend|是否推荐：1-是；0-否' => 'require',

    ];

    protected $message = [
            'money.require' => '充值金额不能为空',
    'give_money.require' => '赠送金额不能为空',
    'sort.require' => '排序不能为空',
    'is_recommend.require' => '是否推荐：1-是；0-否不能为空',

    ];

    protected $scene = [
        'add'  => ['money','give_money','sort','is_recommend',],
'edit' => ['money','give_money','sort','is_recommend',],

    ];

    

}
